<{foreach from=$tags item=t}>
<li>
<a href='index.php?ctl=<{$type}>&params[tag]=<{$t.tag_id}>'>
<{if $t.tag_abbr}>
	<span class="tag-label"<{if $t.tag_bgcolor}> style="color:#<{$t.tag_fgcolor}>;background-color:#<{$t.tag_bgcolor}>"<{/if}>>
	<{$t.tag_abbr}></span>
<{/if}>
<{$t.tag_name}><{if $t.rel_count}> (<{$t.rel_count}>)<{/if}>
</a></li>
<{/foreach}>